#define _CRT_SECURE_NO_WARNINGS 1

class Solution
{
public:
    int percentageLetter(string s, char letter)
    {
        int len = s.size(), count = 0;
        for (auto ch : s)
        {
            if (ch == letter) count++;
        }

        return count * 100 / len;
    }
};